<form class="form-horizontal">
<#list WidgetRequest.preferences?keys as prefKey>
    <#assign pref = WidgetRequest.preferences[prefKey]>
    <div class="form-group">
        <label for="input-${pref.name}" class="col-sm-2 control-label">${pref.displayName}</label>
        <div class="col-sm-10">
            <input name="${pref.name}" value="${pref.value}" id="input-${pref.name}"/>
        </div>
    </div>
    <#else >
    没有需要编辑的属性
</#list>
</form>